package com.lagou.dubbo;

import com.lagou.dubbo.api.RpcTestService;
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableAsync;

import javax.annotation.Resource;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * description: Customer服务启动类
 *
 * @author ykl
 * @version V1.0
 * @date 2020/9/8 下午4:39
 */

@EnableAsync
@Configuration
@EnableDubbo
@PropertySource("classpath:/dubbo-consumer.properties")
@SpringBootApplication(scanBasePackages = {"com.lagou.dubbo"})
public class CustomerApiApplication {


    @Reference
    private RpcTestService rpcTestService;

    public static void main(String[] args) {
        SpringApplication.run(CustomerApiApplication.class, args);


    }






}
